/*
 * @Descripttion:
 * @version: 1.0
 * @Author: xin
 * @Date: 2021-09-18 18:24:37
 * @LastEditors: serve
 * @LastEditTime: 2021-10-18 20:30:19
 */
var express = require('express')
var router = express.Router()
var indexapi = require('../module/index')
/*获取图片验证码*/
router.get('/get_code', async function (req, res, next) {
    indexapi.get_code(req, res, next)
})
/**
 * 获取短信验证码
 */
router.post('/get_sms_code', async function (req, res, next) {
    indexapi.get_sms_code(req, res, next)
})
// /**
//  * 获取配置信息
//  */
// router.post('/getcomfig', async function (req, res, next) {
//     indexapi.getcomfig(req, res, next)
// })

/*获取购买配置信息*/
router.get('/get_play_info', async function (req, res, next) {
    indexapi.get_play_info(req, res, next)
})
/*获取购买配置信息*/
router.post('/get_config', async function (req, res, next) {
    indexapi.get_config(req, res, next)
})

/*获取购买配置信息*/
router.post('/get_module', async function (req, res, next) {
    indexapi.get_module(req, res, next)
})

/*获取用户系统通知信息*/
router.get('/find_notice', async function (req, res, next) {
    indexapi.find_notice(req, res, next)
})
/*发送通知信息*/
router.post('/send_notice', async function (req, res, next) {
    indexapi.send_notice(req, res, next)
})
/*获取用户系统通知信息*/
router.post('/update_notice', async function (req, res, next) {
    indexapi.update_notice(req, res, next)
})

/*获取用户系统通知信息*/
router.post('/get_system_template', async function (req, res, next) {
    indexapi.get_system_template(req, res, next)
})

/*获取是否压缩*/
router.get('/get_compress', async function (req, res, next) {
    indexapi.get_compress(req, res, next)
})

router.params.name = 'index module'
module.exports = router
